<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>软著管理</title>
    <#include "layout/import_js.ftl" />
    <#include "layout/import_css.ftl" />
    <script src="../static/js/softwareCopyright.js"></script>
</head>
<body>
<#include "layout/header.ftl"/>
<#include "layout/sidebar.ftl"/>

<div class="container">
    <div class="raw">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title"><a href="/softwareCopyright/add">上传软著</a></h3>
            </div>
            <table class="table table-hover table-bordered">
                <div class="raw">
                    <th class="col-sm-2">名称</th>
                    <th class="col-sm-2">摘要</th>
                    <th class="col-sm-2">作者</th>
                    <th class="col-sm-2">发表日期</th>
                    <th class="col-sm-2">操作</th>
                </div>

                <#list entities as item>
                    <tr>
                        <td>${item.name!}</td>
                        <td>${item.summary!}</td>
                        <td>${item.authors!}</td>
                        <td>${(item.publishDate?string('yyyy-MM-dd'))!}</td>
                        <td>
                            <a class="btn btn-info" href="/softwareCopyright/edit?id=${item.id}">编辑</a>
                            <button class="btn btn-danger" data-toggle="confirmation" data-popout="true" id="${item.id}" name="del-softwareCopyright">
                                删除
                            </button>
                        </td>
                    </tr>
                </#list>

            </table>
        </div>
        <nav aria-label="Page navigation">
            <ul class="pagination pagination-lg pull-right">
                <li>
                    <a href="#" aria-label="Previous">
                        <span aria-hidden="true">&laquo;</span>
                    </a>
                </li>
                <#list 1..(softwareCopyright)!1 as i>
                    <li><a href="/softwareCopyright?pageIndex=${i}">${i}</a></li>
                </#list>
                <li>
                    <a href="#" aria-label="Next">
                        <span aria-hidden="true">&raquo;</span>
                    </a>
                </li>
            </ul>
        </nav>
    </div>
</div>

<#include "layout/alert.ftl" />
</body>
</html>